//
//  HMDefaultAddressTableViewCell.m
//  HMMarket
//
//  Created by maimaigo3 on 2017/5/11.
//  Copyright © 2017年 homai. All rights reserved.
//

#import "HMDefaultAddressTableViewCell.h"
#import "HMAddressModel.h"
@implementation HMDefaultAddressTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setAddressModel:(HMAddressModel *)addressModel {
    if (addressModel) {
        _nameLabel.text = addressModel.consignee;
        _contectLabel.text = addressModel.consignee_tel;
        _addressLabel.text = [NSString stringWithFormat:@"%@%@%@%@", [HMReductionData replaceNullValue:addressModel.province],[HMReductionData replaceNullValue:addressModel.city],[HMReductionData replaceNullValue:addressModel.county],[HMReductionData replaceNullValue:addressModel.address]];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
